home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d1
/
batchlrn.arc
/
BATDO-3.HLP
< prev
next >
Wrap
Text File
|
1991-06-17
|
1KB
|
24 lines
This file also compares strings (See PAR.HLP) but keep in
mind we are "walking you thru" concepts (bear with us!).
FIRST, type:EDLIN LOGON.BAT SECOND, enter these lines:
1) IF %1 = = YOU GOTO YOU
2) IF %1 = = ME GOTO ME
3) GOTO END
4) :YOU
5) CD\YOU [this sub-directory would have to exist]
6) TYPE YOUMENU.DOC [so would this file]
7) GOTO END
8) :ME
9) CD\ME [same as line #5]
10) TYPE MEMENU.DOC [same as line #6]
11) GOTO END
12) :END
Assuming that the name of this batch file is LOGON.BAT,if
"YOU" wants to work on the system, she would type: LOGON
YOU. The batch file would execute and treat YOU as>>>>%1
(The replaceable parameter).The first line compares %1YOU
with YOU(what was typed). Since they are equal,the second
command part, which says "GOTO YOU (YOU being a label) is
executed.This label is the fourth line of the batch file.